<%--
  Created by IntelliJ IDEA.
  User: 86131
  Date: 2023/8/9
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>电影详情</title>
    <script rel="script" src="${path}/js/jquery-3.6.4.js"></script>
    <link rel="stylesheet" type="text/css" href="${path}/css/xqcontent.css">
</head>
<body>
<c:set var="movie" value="${sessionScope.movie}"/>
    <div id="bigbox">
        <div id="dao">
            <div class="nei">
                <img src="${path}/images/moviePicture/${movie.movie_picture}" id="ntu">
            </div>
            <div class="nei">
                <ul id="nr">
                    <li id="zi">${movie.movie_cn_name}</li>
                    <li id="name">${movie.movie_fg_name}</li>
                    <li>${movie.movie_type}</li>
                    <li>${movie.movie_country} / ${movie.movie_duration}</li>
                    <li>${movie.movie_releaseDate}${movie.movie_country}上映</li>
                    <li id="an">
                        <input type="button" value="想看" class="in">
                        <input type="button" value="评分" class="in">
                    </li>
                    <li id="niu"><input type="button" onclick="jQuery:window.location='yycontent.jsp'" value="特惠购票" class="put"></li>
                </ul>
            </div>
            <div class="nei">
                <ul id="fen">
                    <li class="yan">导演：${movie.movie_director}</li>
                    <li class="yan">演员：${movie.movie_actor}</li>
                    <li>猫眼口碑</li>
                    <li class="fe"><span id="se">${movie.movie_score}</span></li>
                    <li>累计票房</li>
                    <li class="fe">${movie.movie_boxOffice}<span id="yi">亿</span></li>
                </ul>
            </div>
        </div>
        <div id="pin">
            <p>猫眼电影 > 电影 > ${movie.movie_cn_name}</p>
            <p class="jie"><span class="shu"> | </span> 剧情简介</p>
            <p>${movie.movie_detail}</p>
            <p class="jie"><span class="shu"> | </span> 热门短评</p>
            <div id="pinlun">
                <c:set var="Commentlist" value="${sessionScope.Commentlist}"/>
                <c:choose>
                    <c:when test="${empty Commentlist}">
                        <script>window.location="${path}/CommentServlet?prom=xqComment&movie_id=${movie.movie_id}";</script>
                    </c:when>
                    <c:otherwise>
                        <c:forEach items="${Commentlist}" var="comment">
                            <img src="${path}/images/userAvatar/${comment.image}" class="tou">
                            <ul class="pl" >
                                <li id="zan"><img src="${path}/images/tool/rGood.png">${comment.comment_good}</li>
                                <li>${comment.userName}</li>
                                <li>${comment.comment_time}</li>
                                <li id="lun">${comment.content}</li>
                            </ul>
                        </c:forEach>
                    </c:otherwise>
                </c:choose>
            </div>
        </div>
    </div>
</body>
</html>
